﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

using LMSemir.Common;
using LMSemir.DAC;
using LMSemir.Entity;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using LMSemir.Backstage.Common;

namespace LMSemir.Backstage
{
    public partial class admin : BasePage
    {
        protected string userName = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.userName = Session["uname"] == null ? "管理员" : Session["uname"].ToString();
                TeeDataAccess.ConnString = ConfigurationManager.ConnectionStrings["LMSemirConnectionString"].ConnectionString;
                this.repTeeList.DataSource = LMSemir.DAC.TeeDataAccess.getTop20ByDay(DateTime.Now.ToString("yyyy-MM-dd"));
                this.repTeeList.DataBind();
            }
        }
    }
}